package com.pzhu.dormitory.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.ToString;

/**
 * 访客
 *
 * @author
 * @email
 * @date 2021-05-03 02:15:41
 */
@Data
@ToString
@TableName("visit")
@ApiModel(value = "Visit对象", description = "访客")
public class VisitEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	@ApiModelProperty(value = "主键")
	private Long id;
	/**
	 * 访客名
	 */
	@ApiModelProperty(value = "访客名")
	private String name;
	/**
	 * 进入时间
	 */
	@ApiModelProperty(value = "进入时间")
	private Date entryTime;
	/**
	 * 离开时间
	 */
	@ApiModelProperty(value = "离开时间")
	private Date departureTime;
	/**
	 * 原因
	 */
	@ApiModelProperty(value = "原因")
	private String reason;

	@ApiModelProperty(value = "手机号")
	private String phone;

}
